package com.qf.mybatis.dao;

import com.qf.mybatis.entity.Book;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    public List<Book> getAllBook();

    /*
     * 根据book对象进行查询
     * 如果book对象中name不为空
     * */
    public List<Book> selectBookByCondition(Book book);

    public int updateBookByCondition(Book book);

    public int insertManyBooks(@Param("books") List<Book> bookList);

    public int deleteBooksByIds(@Param("ids") List<Integer> bookList);

    public int insertBooks500000(@Param("ManyBook") List<Book> bookList);


}
